package com.kejso.dao.solr;

import org.springframework.data.domain.Sort;
import com.kejso.model.solr.SolrScholar;
import org.springframework.data.domain.Pageable;
import org.springframework.data.solr.core.query.result.FacetPage;
import org.springframework.data.solr.repository.Facet;
import org.springframework.data.solr.repository.Query;
import org.springframework.data.solr.repository.SolrCrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 */
@Repository
public interface SolrScholarRepository extends SolrCrudRepository<SolrScholar,String> {

    List<SolrScholar> findByName(String name,Sort sort);

    SolrScholar findById(String id);

    List<SolrScholar> findByNameAndOrg(String name,String org);

}
